package com.slfx.data.permission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.slfx.data.permission.entity.SystemDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: slfx
 * @Date: 2022-12-31
 * @Description:
 **/
@Mapper
public interface SystemDeptMapper extends BaseMapper<SystemDept> {


    /**
     * 根据父部门获取到子部门列表
     * @param parentId
     * @return
     */
    List<SystemDept> getChildrenByParentId(@Param("parentId") Long parentId);
}
